import { message } from 'antd';

export const customAlert = (s: string, t: string) => {
  switch (t) {
    case 'success': {
      message.success(s);
      break;
    }
    case 'info': {
      message.info(s);
      break;
    }
    case 'warning': {
      message.warning(s);
      break;
    }
    case 'error': {
      message.error(s);
      break;
    }
    default: {
      message.info(s);
      break;
    }
  }
};
